<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">











<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>NPanday - NPanday and ASP.NET Projects</title>
    <style type="text/css" media="all">
      @import url("../../css/maven-base.css");
      @import url("../../css/maven-theme.css");
      @import url("../../css/site.css");
    </style>
    <link rel="stylesheet" href="../../css/print.css" type="text/css" media="print" />
          </head>
  <body class="composite">
    <div id="banner">
                  <a href="" id="bannerLeft">
    
                                            <img src="../.././images/NPanday.png" alt="" />
    
            </a>
                        <a href="http://www.codeplex.com/" id="bannerRight">
    
                                            <img src="../.././images/logo-home.png" alt="" />
    
            </a>
            <div class="clear">
        <hr/>
      </div>
    </div>
    <div id="breadcrumbs">
          
  

  
    
            
  
    
            <div class="xleft">
          
                <a href="http://npanday.codeplex.com/" class="externalLink">NPanday Home</a>
                &gt;
      
                <a href="../../">NPanday 1.2</a>
                  </div>
            <div class="xright">      
  

  
    
            
  
    
             Last Published: 22 Jun 2010
              &nbsp;| Version: 1.2
            </div>
      <div class="clear">
        <hr/>
      </div>
    </div>
    <div id="leftColumn">
      <div id="navcolumn">
           
  

  
    
            
  
    
                   <h5>General Info</h5>
            <ul>
              
    <li class="none">
                    <a href="../../index.html">NPanday Overview</a>
          </li>
              
    <li class="none">
                    <a href="../../release-notes.html">NPanday Release Notes</a>
          </li>
              
    <li class="none">
                    <a href="../../faqs.html">NPanday FAQs</a>
          </li>
              
    <li class="none">
                    <a href="../../faqs.html">NPanday Features</a>
          </li>
              
    <li class="none">
                    <a href="../../npanday.pdf">Documentation PDF</a>
          </li>
          </ul>
              <h5>User's Guide</h5>
            <ul>
              
    <li class="none">
                    <a href="../.././guide/index.html">Introduction</a>
          </li>
              
    <li class="none">
                    <a href="../.././guide/installation/index.html">Installation</a>
          </li>
              
    <li class="none">
                    <a href="../.././guide/vs/index.html">Visual Studio Add-in</a>
          </li>
              
    <li class="none">
                    <a href="../.././guide/maven/index.html">Maven Command Line</a>
          </li>
              
    <li class="none">
                    <a href="../.././guide/devinfra/index.html">Maven Development Infrastructure</a>
          </li>
              
    <li class="none">
                    <a href="../../plugins/index.html">NPanday Plugins</a>
          </li>
          </ul>
              <h5>Contributing</h5>
            <ul>
              
    <li class="none">
                    <a href="../.././developers/index.html">Developer's Guide</a>
          </li>
              
    <li class="none">
                    <a href="../.././issue-tracking.html">Issue Tracking</a>
          </li>
              
    <li class="none">
                    <a href="../.././mail-lists.html">Mailing Lists</a>
          </li>
          </ul>
              <h5>Project Documentation</h5>
            <ul>
              
                
              
      
            
      
            
      
            
      
            
      
            
      
            
      
              
        <li class="collapsed">
                    <a href="../../project-info.html">Project Information</a>
                </li>
          </ul>
              <h5>Resources</h5>
            <ul>
              
    <li class="none">
                    <a href="http://maven.apache.org/" class="externalLink">Apache Maven</a>
          </li>
              
    <li class="none">
                    <a href="http://npanday.codeplex.com/" class="externalLink">NPanday on CodePlex</a>
          </li>
          </ul>
                                           <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
            <img alt="Built by Maven" src="../../images/logos/maven-feather.png"></img>
          </a>
                       
  

  
    
            
  
    
        </div>
    </div>
    <div id="bodyColumn">
      <div id="contentBox">
        <div class="section"><h2>NPanday and ASP.NET Projects</h2>
<div class="section"><h3>Structure of ASP projects</h3>
<p>In Visual Studio you can build and publish a web application using right click in a ASP.NET project -&gt; Publish</p>
<p>A simple Web Application in ASP .NET will generate:</p>
<div class="source"><pre>.
|-- bin/
|   |-- *.dll -- the assemblies referenced by the application
|   |-- artifact.dll -- the project assembly
|   `-- artifact.pbd -- the program debug database
|-- Web.config
`-- *.aspx -- ASP pages</pre>
</div>
<p>This can be deployed to IIS.</p>
<p>The normal compilation using the dotnet compiler plugin already generates proper DLLs.</p>
<p>The plugin created an <tt>aspnet</tt> type that generates the DLL in <tt>target/artifactId/bin</tt> and copies all aspx files to <tt>target/artifactId</tt></p>
<p>It then zips that folder and install it in the repo (in the future create a msi package - perhaps by using the wix plugin as well).</p>
<div class="source"><pre>&lt;assembly xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
  xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/assembly-1.1.0-SNAPSHOT.xsd&quot;&gt;
  &lt;id&gt;dist&lt;/id&gt;
  &lt;formats&gt;
    &lt;format&gt;zip&lt;/format&gt;
  &lt;/formats&gt;
  &lt;fileSets&gt;
    &lt;fileSet&gt;
      &lt;directory&gt;${basedir}/target&lt;/directory&gt;
      &lt;outputDirectory&gt;/bin&lt;/outputDirectory&gt;
      &lt;includes&gt;
        &lt;include&gt;**/*.dll&lt;/include&gt;
      &lt;/includes&gt;
    &lt;/fileSet&gt;
    &lt;fileSet&gt;
      &lt;directory&gt;${basedir}&lt;/directory&gt;
      &lt;outputDirectory&gt;/&lt;/outputDirectory&gt;
      &lt;includes&gt;
        &lt;include&gt;web.config&lt;/include&gt;
        &lt;include&gt;**/*.aspx&lt;/include&gt;
      &lt;/includes&gt;
    &lt;/fileSet&gt;
  &lt;/fileSets&gt;
&lt;/assembly&gt;</pre>
</div>
</div>
<div class="section"><h3>Precompilation of ASP pages</h3>
<p>The SDK provides a ASP .NET precompiler <tt>aspnet_compiler</tt> that is used to check for errors in the ASP pages. See also: <a class="externalLink" href="http://www.odetocode.com/Articles/417.aspx"> Precompilation In ASP.NET 2.0</a>.</p>
<div class="section"><h4>Implementation</h4>
<p>Create an <tt>aspx-compiler-mojo</tt> for <tt>aspnet_compiler</tt> executable, and run</p>
<div class="source"><pre>aspnet_compiler.exe -v /artifactId -p artifactId\ -u -f target\artifactId</pre>
</div>
</div>
</div>
<div class="section"><h3>Visual Studio Addin</h3>
<p>The Add-in needs to recognize Web and Webservices projects in project import</p>
<div class="section"><h4>Implementation</h4>
<p>Recognize Web and Webservices projects by checking the packaging</p>
</div>
</div>
<div class="section"><h3>References</h3>
</div>
</div>
<div class="section"><h2># <a class="externalLink" href="http://msdn.microsoft.com/en-us/library/aa479386.aspx"> Using IIS with Microsoft Visual Studio 2005 and the New Web Project System</a> # <a class="externalLink" href="http://www.odetocode.com/Articles/417.aspx"> Precompilation In ASP.NET 2.0</a></h2>
</div>

      </div>
    </div>
    <div class="clear">
      <hr/>
    </div>
    <div id="footer">
      <div class="xright">&#169;  
          2010
    
          NPanday
          
  

  
    
            
  
    
  </div>
      <div class="clear">
        <hr/>
      </div>
    </div>
  </body>
</html>
